<template>
    <div v-show="onlyXiaoperMain">
        <el-empty description="描述文字" :image-size="200"></el-empty>
    </div>
</template>

<script>
    export default {
        name:'XiaoperMainbody',
        data(){
            return{
                onlyXiaoperMain:1,
            }
        },
        mounted(){
            // console.log('看看现在的路由',this.$router.history.current.name);
            this.$bus.$on('newRouterchanged',this.lookroute)
        },
		beforeDestroy() {
			this.$bus.$off('newRouterchanged')
		},
        methods:{
            lookroute(getrouter){
                if(getrouter === 'xperMain'){
                    this.onlyXiaoperMain=1
                    console.log('您好啊欢迎回到用户中心主页');
                }else{
                    this.onlyXiaoperMain=0
                }
                // console.log('lookroute@@',this.$router.history.current.name);
                // console.log('lookroute##',getrouter);
            }
        }
    }
</script>

<style>

</style>